import Vue from 'vue'
import moment from 'moment'

Vue.filter('dateFormat', function (time, newTime = 'YYYY-MM-DD HH-mm-ss') {
    return moment(time).format(newTime)
})